import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'sys_config' })
export default class SysConfig extends BaseEntity {
  @Column({ type: 'varchar', length: 50, unique: true,name:'config_code', comment: '参数编码' })
  @ApiProperty()
  configCode: string;

  @Column({ type: 'varchar', length: 50,name:'config_name', comment: '参数名称' })
  @ApiProperty()
  configName: string;

  @Column({ type: 'varchar', nullable: true,name:'config_value', comment: '参数值' })
  @ApiProperty()
  configValue: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
